'use strict';
/**
 * model
 */
export default class extends think.model.base {


    async getUser(obj){
    let user=await this.where(obj).find();
    return user;
    }

    async addUser(obj){
     let user = await this.thenAdd(obj,{openid:obj.openid});
     return user;
    }
}
